#!/bin/bash
cat /etc/passwd| cut -d: f4|sort| uniq -c | while read c g
do
{ echo $c; grep :$g: /etc/group| cut -d: -f1;}|xargs -n 2
done
